from scrapy import cmdline

cmdline.execute('scrapy crawl douban -o douban.csv'.split())